import { sql2apiAction, getAction, postAction  } from '@/api/manage'

// 查看小区测速走访任务列表
const getCommunityList = (params)=>postAction('/Xccs/searchVillage' ,params)
// 查看小区测速走访任务列表
const getCommunityInfo = (params)=>postAction('/Xccs/searchVillageById' ,params)
// 查询本人是否有该小区打卡记录
const getCommunityDkRecord = (params)=>postAction('/Xccs/searchPunchForDay' ,params)
// 进行小区打卡
const communityDk = (params)=>postAction('/Xccs/punchTask' ,params)
// 小区任务完成进度
const communityTaskPercent = (params)=>postAction('/Xccs/searchTaskProgress' ,params)
// 小区商务楼宇任务完成进度
const communityTaskSwlyPercent = (params)=>postAction('/Xccs/searchTaskSwlyByVillageId' ,params)
// 结束小区任务
const closeCommunityTask = (params)=>postAction('/Xccs/confirmVillageTask' ,params)
// 查询楼宇任务情况
const buildTaskLIst = (params)=>postAction('/Xccs/searchBuildFloorProgress', params)
// 查询楼宇任务情况
const ywswTaskLIst = (params)=>postAction('/Xccs/searchYwswProgress', params)
// 提交测速结果
const submitSpeedResult = (params)=>postAction('/Xccs/inputSpeedResult', params)
// 查询测速结果
const viewSpeedResult = (params)=>postAction('/Xccs/searchSpeedResultById', params)
// 移网室外任务废弃小区方位任务
const discardVillagePosition = (params)=>postAction('/Xccs/discardVillagePosition', params)
// 问卷调查任务查询
const communityWjdcPercent = (params)=>postAction('/Xccs/searchWjdc' ,params)
// 新版问卷调查任务查询
const communityWjdcNewPercent = (params)=>postAction('/Xccs/searchWjdcNew' ,params)
// 提交问卷调查结果
const submitWjdcResult = (params)=>postAction('/Xccs/saveWjdc' ,params)
// 提交新版问卷调查结果
const submitWjdcNewResult = (params)=>postAction('/Xccs/saveWjdcNew' ,params)
// 删除问卷调查结果
const deleteWjdcResult = (params)=>postAction('/Xccs/deleteWjdcById' ,params)
// 删除新版问卷调查结果
const deleteWjdcNewResult = (params)=>postAction('/Xccs/deleteWjdcNewById' ,params)
// 查询无源设备巡检楼宇任务情况
const wysbBuildTaskLIst = (params)=>postAction('/Xccs/searchWysbBuildProgress', params)
// 通过楼宇ID查询无源设备巡检情况
const wysbTaskList = (params)=>postAction('/Xccs/searchWysbListByBuild', params)
// 无源设备巡检结果存储
const saveWysb = (params)=>postAction('/Xccs/saveWysb', params)
// 新增无源设备
const addWysb = (params)=>postAction('/Xccs/addWysb', params)
// 删除无源设备
const deleteWysb = (params)=>postAction('/Xccs/deleteWysbById', params)
// 查询商务楼宇任务进度
const communitySwlyPercent = (params)=>postAction('/Xccs/searchTaskSwly' ,params)
// 查询商务楼宇固网任务进度
const communitySwlyGwResult = (params)=>postAction('/Xccs/searchTaskSwlyGwResult' ,params)
// 新增商务楼宇任务结果
const submitSwlyResult = (params)=>postAction('/Xccs/submitSwlyResult' ,params)
// 删除商务楼宇固网任务
const deleteSwlyResult = (params)=>postAction('/Xccs/deleteSwlyResult' ,params)
// 查询商务楼宇双线任务进度
const communitySwlySxResult = (params)=>postAction('/Xccs/searchTaskSwlySxResult' ,params)
// 查看图片是否重复
const picVerification = (params)=>postAction('/Xccs/picVerification' ,params)
// 更新移网楼宇楼层
const updateYwlyFloor = (params)=>postAction('/Xccs/updateYwlyFloor' ,params)


export {
  getCommunityList,
  getCommunityInfo,
  getCommunityDkRecord,
  communityDk,
  communityTaskPercent,
  closeCommunityTask,
  buildTaskLIst,
  ywswTaskLIst,
  submitSpeedResult,
  viewSpeedResult,
  discardVillagePosition,
  communityWjdcPercent,
  submitWjdcResult,
  deleteWjdcResult,
  wysbBuildTaskLIst,
  wysbTaskList,
  saveWysb,
  addWysb,
  deleteWysb,
  communityTaskSwlyPercent,
  communitySwlyPercent,
  communitySwlyGwResult,
  submitSwlyResult,
  deleteSwlyResult,
  communitySwlySxResult,
  picVerification,
  updateYwlyFloor,
  submitWjdcNewResult,
  communityWjdcNewPercent,
  deleteWjdcNewResult
};